package org.example.yunshu.demos.controller;

import org.example.yunshu.demos.service.FriendService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpSession;

@RestController
@RequestMapping("/friend")
public class FriendController {

    @Autowired
    private FriendService friendService ;

    @RequestMapping("/getFriendListByUserId")
    public Object getFriendListByUserId(HttpSession httpSession){
        return friendService.getFriendListByUserId(httpSession);
    }
}
